import request from '@/utils/request'



export function reductionDayList(data) { //将本增效-列表
  return request({
    url: '/project-quality/api/costReductionStatistics/page',
    method: 'post',
    data
  })
}


export function reductionDayAdd(data) { //将本增效-新增
  return request({
    url: '/project-quality/api/costReductionStatistics/add',
    method: 'post',
    data
  })
}

//原 put
export function reductionDayEdit(data) { //将本增效-编辑
  return request({
    url: '/project-quality/api/costReductionStatistics/edit',
    method: 'post',
    data
  })
}

//原 del
export function reductionDayDelete(id) { //将本增效-删除
  return request({
    url: '/project-quality/api/costReductionStatistics/del/' + id,
    method: 'get',
  })
}
export function reductionDayDetails(id) { //将本增效-详情
  return request({
    url: '/project-quality/api/costReductionStatistics/' + id,
    method: 'get',
  })
}
export function reductionDayExport(data) { //将本增效-导出
  return request({
      url: '/project-quality/api/costReductionStatistics/export',
      responseType: 'arraybuffer',
      method: 'POST',
      data,
  })
}
export function reductionDayExportdownload(data) { //将本增效-模板下载
  return request({
      url: '/project-quality/api/costReductionStatistics/download',
      responseType: 'arraybuffer',
      method: 'POST',
      data,
  })
}
